<div class="cityDetails index">
	<h2><?php __('Thông tin chung Tỉnh/Thành');?></h2>
	
	<?php echo $this->render('_filter_box', ''); ?>
	
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th>Tỉnh/Thành</th>
			<th>Dân số</th>
			<th>Diện tích</th>
			<th>Số dân tộc</th>
			<th>Thành phố</th>
			
			<th>Phường/Xã/Thị trấn</th>

			<th>Kinh phí/năm</th>
			<th>Năm</th>
			<th class="actions"><?php __('Chức năng');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($cityDetails as $cityDetail):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		
		<td>
			<?php echo $cityDetail['City']['name']; ?>
		</td>
		<td><?php echo $cityDetail['CityDetail']['population']; ?>&nbsp;</td>
		<td><?php echo $cityDetail['CityDetail']['area']; ?>&nbsp;</td>
		<td><?php echo $cityDetail['CityDetail']['ethnics_num']; ?>&nbsp;</td>
		<td><?php echo $cityDetail['CityDetail']['cities_num']; ?>&nbsp;</td>

		<td><?php echo $cityDetail['CityDetail']['states_num']; ?>&nbsp;</td>

		<td><?php if ($cityDetail['CityDetail']['outlay']) echo number_format($cityDetail['CityDetail']['outlay'],0,".", ","); ?>&nbsp;</td>
		<td><?php echo $cityDetail['CityDetail']['year']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Xem', true), array('action' => 'view', $cityDetail['CityDetail']['id'])); ?>
			<?php echo $this->Html->link(__('Sửa', true), array('action' => 'edit', $cityDetail['CityDetail']['id'])); ?>
			<?php echo $this->Html->link(__('Xóa', true), array('action' => 'delete', $cityDetail['CityDetail']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $cityDetail['CityDetail']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('trước', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('sau', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __('Chức năng'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Thêm thông tin', true), array('action' => 'add')); ?></li>
		
	</ul>
</div>